package src;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;

public class Block {
	
	Image img;
	Rectangle blockRect;
	boolean isSolid;
	
	public Block(String path, Rectangle rect, boolean b){
		img = ResourceLoader.getImage(path);
		blockRect = rect;
		isSolid = b;
	}
	
	public void draw(Graphics g){
		g.drawImage(img, blockRect.x, blockRect.y, blockRect.width, blockRect.height, null);
	}

}
